import { axios } from '@/utils/request'

const api = {
  list: '/mch/cash/list',
  save: '/mch/cash/save',
  transfer: '/mch/cash/cash-submit'
}

export default api

export function list (parameter) {
  return axios({
    url: api.list,
    method: 'get',
    params: parameter
  })
}

export function save (parameter) {
  return axios({
    url: api.save,
    method: 'post',
    data: parameter
  })
}

export function transfer (parameter) {
  return axios({
    url: api.transfer,
    method: 'post',
    data: parameter
  })
}
